package com.springcloudexample.feign;

import com.springcloudexample.feign.fallback.EurekaClientFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "eureka-client",fallback = EurekaClientFeignServiceFallback.class)
public interface EurekaClientFeignService {

    @GetMapping("/index")
    public String index();
}
